xend: Allow vtpm instance uuid to be specified on domain creation
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 24 Aug 2009 07:05:46 +0000 (08:05 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 24 Aug 2009 07:05:46 +0000 (08:05 +0100)
commit2ac9ced4cb04af24b3448a245c7da87972876069
tree14008166a66cfd2bfa671f3e7dbcf9213c1097b0
parent63afd80f48171e255e05e7ebcde732b555b597e5
xend: Allow vtpm instance uuid to be specified on domain creation

Right now xen will create a new vtpm instance everytime you start up a
domU, even if you specify the instance parameter in your config file.
Each vtpm instance is then given a uuid and the vtpm.db file maps
instance numbers to uuid numbers.

This patch is a hack that lets you explicitly set the uuid of your
vtpm instance. Everytime you boot up your domU now the vtpm will get
that uuid and thus it will always get the same vtpm instance number
instead of being generated a new one.

So for example, in your config file you would do something like this
vtpm = [ 'backend=0,uuid=dcdb124b-9fed-4040-b149-dd2dfd8d094c' ]

Signed-off-by: Matt Fioravante <Matthew.Fioravante@jhuapl.edu>
tools/python/xen/xm/create.py